<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ page isELIgnored="false"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
 <link rel="stylesheet" type="text/css" href="<s:url value="/resources"/>/chat/chat.css" />
<link rel="stylesheet"
	href="<s:url value="/resources"/>/css/innerstyle.css" type="text/css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<s:url value="/resources"/>/css/custom-theme/jquery-ui.custom.min.css" />
<!--<script type='text/javascript' src='<s:url value="/resources"/>//glqt/dwr/util.js'></script>
<script type='text/javascript' src='<s:url value="/resources"/>//glqt/dwr/engine.js'></script>
<script type='text/javascript' src='<s:url value="/resources"/>//glqt/dwr/interface/htdwr.js'></script>
<script type='text/javascript' src='<s:url value="/resources"/>//glqt/dwr/interface/jydz.js'></script>-->
<script type="text/javascript"
	src="<s:url value="/resources"/>/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
	src="<s:url value="/resources"/>/js/jquery-ui.custom.min.js"></script>
<script type="text/javascript"
	src="<s:url value="/resources"/>/js/i18n/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript"
	src="<s:url value="/resources"/>/js/jquery.form.js"></script>
<script type="text/javascript"
	src="<s:url value="/resources"/>/js/json2.js"></script>
<script type="text/javascript"
	src="<s:url value="/resources"/>/js/jquery.validate.min.js"></script>
<script type="text/javascript"
	src="<s:url value="/resources"/>/js/messages_zh.js"></script>
<script type="text/javascript"
	src="<s:url value="/resources"/>/js/htinfo.js"></script>
<style type="text/css">
html,body {
	margin: 0;
	padding: 0;
	font-size: 85%;
}

#tab {
	width: 99%;
	padding: 0 2px 3px 2px;
	margin: 0;
	float: left;
}

#tab h1 {
	display: block;
	width: 95%;
	height: 45px;
	float: center;
	text-align: center;
	padding-top: 5px;
}

#tab h1 span {
	width: 250px;
	font: bold 26px/55px Arial, Helvetica, sans-serif;
	color: #fff;
	background-color: #fff;
	display: block;
}

.textbox {
	width: 90px;
	border: #000 1px solid;
}

.textboxs {
	width: 70px;
	border: #000 1px solid;
}

.longtextbox {
	width: 180px;
	border: #000 1px solid;
}

.longtextbox1 {
	width: 180px;
	border: #000 1px solid;
	background-color: #ddd;
}

.shorttextbox {
	width: 50px;
	border: #000 1px solid;
}
.shorttextbox1 {
	width: 50px;
	border: #000 1px solid;
	background-color: #ddd;
}

.textarea {
	overflow: auto;
	border: #000 1px solid;
}

.textarea1 {
	overflow: auto;
	border: #000 1px solid;
	background-color: #ddd;
}

.select div {
	border: 1px solid #000;
	float: left;
}

label {
	display: block;
}

fieldset {
	padding: 0;
	border: 0;
	margin-top: 25px;
}

label.error {
	color: red; /*错误信息的颜色*/
}

input.error {
	border: 1px dotted red; /*输入错误的输入框的边框样式*/
}
</style>
</head>
<script type='text/javascript'>
  
  
  	$(function (){
        $("#but2").button();
        $("#but3").button();
  	     buttonclick("#but2","${bdzt}");
  	     //checkJg();
	});
	
	function buttonclick(but,str){
	$(but).click((function (){
  	 var url= "<s:url value="/"/>/gpjy/bdthcanel";
			$.post(url, {
				bdbh : $("#bdbh").val(),
				bdzt : str
			}, function(data, textStatus) {				
				var json = eval('(' + data + ')');
				if (json.result == "1") {
					alert("操作成功");
					window.returnValue = 1;
					window.close();
				} else {
					alert("操作失败");
				}

			});
		}));
	}
</script>
<body>
	<div id="tab">
		<h1>挂 牌 报 单</h1>
		<form name="form2" id="form2">
			<table id="list_search" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td>出卖人（销方）:</td>
					<td>&nbsp;</td>
					<td>报单号:</td>
					<td>${bdxx.baodbh}</td>
					<td>出省站/营业站:</td>
					<td>
					<s:if test="bdxx.hetxs==1">${bdxx.meijglzname}</s:if>
					<s:else>${bdxx.yingyzname}</s:else>
					</td>
				</tr>

				<tr>
					<td>买受人（购方）:</td>
					<td>${bdxx.baodrdwmc}</td>
					<td>签约地点:</td>
					<td>中国(太原)煤炭交易中心	</td>
					<td>到达省、地（市）:</td>
					<td>${bdxx.daodssdname}</td>
				</tr>

				<tr>
					<td>合同形式:</td>
					<td>${bdxx.hetxsname}</td>
					<td>价格类型:</td>
					<td>${bdxx.jiaglxname}</td>
					<td>隶属行业:</td>
					<td>${bdxx.lisname}</td>
				</tr>

				<tr>
					<td>发货单位:</td>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
					<td>签订时间:</td>
					<td>${bdxx.baodsj}</td>

				</tr>

				<tr>
					<td colspan="6" style="padding-top:5px;">一、收货人名称、品种规格、数量、单价</td>
				</tr>
				<tr>
					<td colspan="6" style="padding:1px;">
						<table id="changdi" align="center" cellpadding="0" cellspacing="0"
							class="content_gridview" border="1">
							<thead>
								<tr>
									<th rowspan="3">收货人名称</th>
									<th rowspan="3">品种规格</th>
									<th rowspan="3">质量指标</th>
									<th rowspan="3">价格<br/>(元/吨)</th>
									<th colspan="13">交（提）货时间、煤量（吨）</th>

								</tr>
								<tr>
									<th rowspan="2">全年合计</th>
									<th colspan="3">一季度</th>
									<th colspan="3">二季度</th>
									<th colspan="3">三季度</th>
									<th colspan="3">四季度</th>
								</tr>
								<tr>
									<th>1</th>
									<th>2</th>
									<th>3</th>
									<th>4</th>
									<th>5</th>
									<th>6</th>
									<th>7</th>
									<th>8</th>
									<th>9</th>
									<th>10</th>
									<th>11</th>
									<th>12</th>
								</tr>
							</thead>
							<tbody>
									<tr>
										<td>${bdxx.sfahdwname}</td>
										<td>${bdxx.pinzgg}</td>
										<td>${bdxx.zhilzb}</td>
										<td><div id="jiag"><fmt:formatNumber value="${bdxx.danj}" pattern="###.##"/></div></td>
										<td><fmt:formatNumber value="${bdxx.shul}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml1}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml2}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml3}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml4}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml5}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml6}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml7}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml8}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml9}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml10}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml11}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml12}" pattern="###"/></td>
									</tr>
							</tbody>
						</table></td>
				</tr>

				<tr>
					<td colspan="6">
						<table id="djtk" cellpadding="0" cellspacing="0" border="0"
							border rules=rows frame=below >

							<s:iterator value="djtk" status="i">
								<tr>
									<td>${tkh}${biaot}</td>
									<td style="width:86%"><div id="neir${i.index}">${neir}</div></td>
								</tr>
							</s:iterator>
						</table></td>
				</tr>
				<tr>
					<td colspan="6">
						<table cellpadding="0" cellspacing="0" style="width:100%"
							class="content_gridview" border="1">
							<thead>
								<tr>
									<th colspan="2">出卖人</th>
									<th colspan="2">买受人</th>									
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>
										<table cellpadding="0" cellspacing="0" border="0"
											class="content1" >
											<tr>
												<td>出卖人名称(章)：</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>&nbsp;</td>
											</tr>

										</table></td>
									<td><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>出卖人结算单位名称(章)：</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>&nbsp;</td>
											</tr>

										</table>
									</td>
									<td><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>买受人名称(章)：</td>
												<td>${bdxx.baodrmc}</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>${bdxx.baodrzs}</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>${bdxx.baodrfddbr}
												</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>${bdxx.baodrwtdlr}
												</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>${bdxx.baodrdh}</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>${bdxx.baodrcz}</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>${bdxx.baodryzbm}</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>${bdxx.baodrkhyh}</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>${bdxx.baodryhzh}</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>${bdxx.baodrnsrdjzh}
												</td>
											</tr>

										</table>
									</td>
									<td><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>买受人结算单位名称(章)：</td>
												<td>${bdxx.baodjsrmc}</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>${bdxx.baodjsrzs}</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>${bdxx.baodjsrfddbr}</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>${bdxx.baodjsrwtdlr}</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>${bdxx.baodjsrdh}</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>${bdxx.baodjsrcz}</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>${bdxx.baodjsryzbm}</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>${bdxx.baodjsrkhyh}</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>${bdxx.baodjsryhzh}</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>${bdxx.baodjsrnsrdjzh}</td>
											</tr>

										</table>
									</td>									
								</tr>
							</tbody>
						</table></td>

				</tr>
				<tr>					
					<td colspan="6" align="right"><font size="2">有效期：${bdxx.kaissj} 至 ${bdxx.jiessj}</font>
					</td>
				</tr>
				<tr>
					<td colspan="6" align="center">
					    <input type="hidden" value="${bdxx.baodbh}" id="bdbh"> 
						<input id="but2" type="button" name="" value="撤销" /> &nbsp;&nbsp;&nbsp;
						<input id="but3" type="button" name="" value="关闭" onclick="window.returnValue=1;window.close();" />
					</td>
				</tr>

			</table>
		</form>
	</div>
	<div id="dialog-confirm" title="是否确定？"></div>
</body>
</html>
